package cn.smbms.service.user;

import cn.smbms.pojo.User;

import java.util.List;

public interface UserService {
    //用户登录
    public User login(String userCode);
    //根据条件查询用户列表
    public List<User> getUserList(String queryUserName, int queryUserRole, int currentPageNo, int pageSize);
    //通过条件查询-用户表记录数
    public int getUserCount(String queryUserName, int _queryUserRole);
    //增加用户信息
    public boolean add(User user);
    //根据userCode查询出User
    public User selectUserCodeExist(String userCode) throws Exception;
    //修改用户信息
    public boolean update(User user);
    //根据ID查找user
    public User getUserById(Integer idsss);
    //根据userId修改密码
    public boolean updatePwd(int id, String pwd);
}
